package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @description 成员统计表
 */
@Data
@TableName("cp_work_employee_statistic")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "成员统计")
public class WorkEmployeeStatisticEntity extends BaseEntity<WorkEmployeeStatisticEntity> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "企业id")
    private Integer corpId;

    /**
     * 成员id (cp_work_employee.id)
     */
    @ApiModelProperty(value = "成员id")
    private Integer employeeId;

    /**
     * 发起申请数成员通过「搜索手机号」、「扫一扫」、「从微信好友中添加」、「从群聊中添加」、「添加共享、分配给我的客户」、「添加单向、双向删除好友关系的好友」、「从新的联系人推荐中添加」等渠道主动向客户发起的好友申请数量
     */
    @ApiModelProperty(value = "好友申请数量")
    private Integer newApplyCnt;

    @ApiModelProperty(value = "新增客户数")
    private Integer newContactCnt;

    @ApiModelProperty(value = "聊天总数")
    private Integer chatCnt;

    @ApiModelProperty(value = "发送消息数")
    private Integer messageCnt;

    @ApiModelProperty(value = "已回复聊天占比")
    private Integer replyPercentage;

    @ApiModelProperty(value = "平均首次回复时长")
    private Integer avgReplyTime;

    @ApiModelProperty(value = "删除/拉黑成员的客户数")
    private Integer negativeFeedbackCnt;

    @ApiModelProperty(value = "同步时间")
    private LocalDateTime synTime;

}